package com.zs.framework.thread.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;

/**
 * ThreadPoolExecutor
 *
 * @author zhougf
 * @date 2020/09/03
 */
@Configuration
@EnableAsync
public class ZsThreadPoolExecutor {
    public static ThreadPoolTaskExecutor createThreadPoolExexutor() {
        ThreadPoolTaskExecutor threadPoolExecutor = new ThreadPoolTaskExecutor();

        return threadPoolExecutor;
    }
}
